package com.service.impl;

import com.mapper.MenuMapper;
import com.pojo.Menu;
import com.service.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("menuService")
public class MenuServiceImpl implements MenuService {
    @Resource
    private MenuMapper menuMapper;
    @Override
    public Menu getMenu(Integer mid) {
        return menuMapper.getMenu(mid);
    }

    @Override
    public int updateMenu(Menu menu) {
        return menuMapper.update(menu);
    }
}
